
/* JavaScript content from js/booknow.js in folder common */



	
	
(function($){
	
	$("#cancelBtn").click(function() {
		alert("1111");
	});
	$("#bookNowBtn").click(function(){
		//bookNow();
		$.mobile.changePage("view/loading.html");		

	});
	
})(jQuery);




function bookNow(){
	var params = {latitude : window.latitude, longitude : window.longitude};
	var invocationData = {
			adapter : 'SmartTaxiAdp',
			procedure : 'booknow',
			parameters : [params]
		};
	
	WL.Client.invokeProcedure(invocationData,{
		onSuccess : bookNowSuccess,
		onFailure : bookNowFailure
	});
}

function bookNowSuccess(result){
	alert("success");
}

function bookNowFailure(result){
	alert("fail");
}